//
//  @ Project : Galaxy Star Trading System
//  @ File Name : Transaction.h
//  @ Date : 2014/9/5
//  @ Author : 
//
//

#if !defined(_CTRANSACTION_H)
#define _CTRANSACTION_H


namespace GSTrader
{
	namespace TradeBase
	{
		class TRADE_BASE_API CTransaction : public CDataObject
		{
		public:
			CTransaction();
			virtual ~CTransaction();
			CTransaction(CExecutionReport& report);

			void Add(CExecutionReport& report);
			string ToString();
		public:
			double m_dQty;
			double m_dAvePrice;
			double m_dPrice;
			double m_dAmount;
			double m_dCommission;
			bool m_bCompleted;
			
			int  m_nOrderId;
			int  m_nInstrumentId;
			int  m_nSide;

			list<int > m_listTradeId;
		};
	}
}

#endif //_CTRANSACTION_H